/**
 * @(#) Messages.as
 *
 * @date		2009. 06. 24.
 * @version		1.0
 * @author		Shin, Yunwoo
 * @description	Application 전체에 걸쳐 상용될 Global 변수들을 선언
 * 				
 */

package com.skt.common_hr.common
{
	import com.wcl.dataloader.DataLoaderFactory;
	
	import flash.utils.Timer;
	
	import mx.collections.ArrayCollection;
	
	public class Variables
	{
		public static var CURRENT_DATA_SOURCE:String	= DataLoaderFactory.TYPE_REMOTEOBJECT;

//shgoo 2010.01.29
		//연말정산 용사용자 사번
		[Bindable] public static var yearPernr:String = "00";	// 사용자 없음
///////////////////
		//[Bindable] public static var myPernr:String = "110043"; 	//  고아라 (인사담당자)
		[Bindable] public static var moduleName:String = "";	// 현재 반영된 모듈 네임. 
		
		[Bindable] public static var myPernr:String = "";	// 김연아 파견직
		
		[Bindable] public static var I_YEA:String = "";	// 연말정산 서무 여부 
		
		[Bindable] public static var myName:String = "";
		[Bindable] public static var myOrgCode:String = "";
		[Bindable] public static var myOrg:String = "";
		[Bindable] public static var myBossCode:String = "";
		[Bindable] public static var myBossName:String = "";
		[Bindable] public static var myPosition:String = "";
		[Bindable] public static var myHwtop:String = "";
		
		[Bindable] public static var myKostl:String = "";
		[Bindable] public static var myCardno:String = ""; 
		[Bindable] public static var mySid:String = "";
		
		[Bindable] public static var myTel:String = "";
		
		[Bindable] public static var myEhrole:String = "";
		
		[Bindable] public static var authorities:ArrayCollection;
		[Bindable] public static var dateFormat:String = "YYYY-MM-DD";
		public static var locales:Array = [ "ko_KR", "en_US", "zh_CN" ];

		public static var current_locale:String 	= "ko_KR";
		public static var current_language:String  	= "ko";
		public static var country:String 			= "KR";
		[Bindable] public static var company:String = "";		// 접속회사명
		[Bindable] public static var open:String = "";		// 사용자 	오픈여부 //fnu만 	 	
		[Bindable] public static var language:String = "KO";	// 접속 언어 (default KO)
		[Bindable] public static var dataSource:String = "";	// data source(properties파일명과 일치하여야 함)
		//[Bindable] public static var safeTime:Date = new Date();
		[Bindable] public static var timeout:int = 30;			// 제한시간 분단위
		public static var safeTimer:Timer;
		
		/*
		[Bindable] public static var SAP_ID:String				= "";
		public static var current_company:String 	= "DEV";
		public static var serverName:String 		= "DEV_KO";
		
		public static function setLocale(language:String, company:String):void
		{
			current_language = language;
			current_company = company;
			//trace("current_language = " + current_language);
			//trace("current_company = " + current_company);
			for each(var item:String in locales) {
				if(item.indexOf(current_language)>-1) {
					current_locale = item;
				}
			}
			//trace("current_locale = " + current_locale);
			serverName = current_company + "_" + current_language.toUpperCase();
			trace("serverName = " + serverName);
		}		
		*/
		
		// 다른 모듈을 호출할때.. 파라메터를 여기에 담아둠..
		// 추후에 모듈 호출시 parameter를 담아서  호출하는 방법으로 전환해야 함
		public static var moduleParams:Object = null;
	}
}